// app/model/case.js //药物，处方
'use strict';

module.exports = app => {
  const {
    STRING,
    INTEGER,
  } = app.Sequelize;
  const Case = app.model.define('case', {
    id_case: {
      type: INTEGER,
      primaryKey: true,
      autoIncrement: true,
    },//病例的ID
    id_patient: {
      type: INTEGER,
    },//就诊人ID
    marriage_case: INTEGER,//结婚状况
    fertility_case: INTEGER,//生育状况
    meal_case: STRING,//用餐时间
    temperature_case: STRING,//体温
    previous_history_case: INTEGER,//既往史
    main_suit_case: STRING,//主诉
    height_case: STRING,//身高
    weight_case: STRING,//体重
  }, {
    freezeTableName: true,
    timestamps: false,
  });

  return Case;
};

